package com.atguigu.eduservice.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;
import java.util.List;

@TableName(value = "organization_base")
@Data
public class OrganizationBase {

    private String organizationBaseId; //id

    private String organizationName;

    private Date createTime;

    private Date updateTime;

    private Integer activeFlag;  //是否删除

    private Integer sortingOrder; //排序

    private String orgCode;

    private String parentCode;

    /**
     * 用于保存一个菜单的子菜单
     */
    @TableField(exist = false)
    private List<OrganizationBase> children;

}
